package com.xhj.client;

import com.xhj.client.impl.MemberClientImpl;
import com.xhj.vo.MemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "service-ucenter",fallback = MemberClientImpl.class)
public interface MemberClient {
    @RequestMapping("/member/getInfo/{id}")
    public MemberVo getMemberInfoById(@PathVariable String id);
}


